<ion-modal-view>
  <ion-header-bar class="bar bar-header bar-positive">
    <h3 class="title">选择联系人</h3>
    <button class="button button-clear button-primary" ng-click="modalConsignee.hide()">取消</button>
  </ion-header-bar>
  <div class="bar bar-header item-input-inset" style="margin-top: 44px;">
    <label class="item-input-wrapper">
      <i class="icon ion-ios-search placeholder-icon"></i>
      <input type="search" placeholder="手机号" ng-model="customersSearch.param.customerPhone">
    </label>
  </div>
  <ion-content style="margin-top: 42px;">
    <ion-refresher
      pulling-text="下拉刷新..."
      on-refresh="doRefresh()">
    </ion-refresher>
    <div ng-if="showloading" class="ion-spinner">
      <ion-spinner icon="lines" class="spinner-calm"></ion-spinner>
    </div>
    <div ng-if="showloading == false" class="content">
      <h5 ng-if="customersData==''" class="notFound">未找到数据</h5>
      <ul class="list">
        <li class="item" ng-repeat="data in customersData" on-hold="deleteCustomers(data)" ng-click="chooseConsignee(data.customerName,data.customerPhone,data.customerAddress)">
          <p ng-if="data.customerName!=''" style="margin-left: 10px;font-size: 16px;width: 60%;float: left;">{{data.customerName}}</p>
          <i class="ion-ios-telephone balanced" ng-click="callPhone(data.customerPhone);$event.stopPropagation();" ng-if="data.customerPhone!=''" style="font-size: 13px;margin-right: 10px;float: right;">{{data.customerPhone}}</i>
        </li>
      </ul>
    </div>
    <ion-infinite-scroll on-infinite="loadMore()" distance="1%" ng-if="hasNextPage()"></ion-infinite-scroll>
  </ion-content>
</ion-modal-view>
